module.exports = function(sequelize, DataTypes) {
  var Player = sequelize.define('player', {
    userId: {
      type: DataTypes.INTEGER,
      primaryKey: true
    },
    account: {
      type: DataTypes.STRING(64)
    },
    name: {
      type: DataTypes.STRING(255)
    },
    sex: {
      type: DataTypes.INTEGER
    },
    headimg: {
      type: DataTypes.STRING(255)
    },
    gold: {
      type: DataTypes.DECIMAL
    },
    onlineStatus: {
      type: DataTypes.INTEGER
    },
    stock: {
      type: DataTypes.DECIMAL
    },
    numOfBanker: {
      type: DataTypes.INTEGER
    },
    freeze: {
      type: DataTypes.INTEGER
    },
    records: {
      type: DataTypes.STRING
    }
  }, {
    freezeTableName: true,
    tableName: 't_users',
    updatedAt: false,
    createdAt: false
  })
  return Player
}
